/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

/**
 *
 * @author SOGOBA
 */
public class Vaccination {
String maladie;
byte type;

    public Vaccination() {
    }
/**
 * 
 * @param maladie
 * @param type
 */
    public Vaccination(String maladie, byte type) {
        this.maladie = maladie;
        this.type = type;
    }

    public void setMaladie(String maladie) {
        this.maladie = maladie;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public String getMaladie() {
        return maladie;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Vaccination other = (Vaccination) obj;
        if ((this.maladie == null) ? (other.maladie != null) : !this.maladie.equals(other.maladie)) {
            return false;
        }
        if (this.type != other.type) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.maladie != null ? this.maladie.hashCode() : 0);
        hash = 71 * hash + this.type;
        return hash;
    }

    public byte getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Vaccination{" + "maladie=" + maladie + "type=" + type + '}';
    }

   

}
